<?php session_start();
	if(isset($_POST['db_name'])){
		$_SESSION['db_name'] = $_POST['db_name'];
		$_SESSION['db_port'] = $_POST['db_port'];
		$_SESSION['db_sid'] = $_POST['db_sid'];
		$_SESSION['db_user'] = $_POST['db_user'];
		$_SESSION['db_pass'] = $_POST['db_pass'];
	}
	include 'db_connect.php';
?>
<html>
<head>
	<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
	<script src="../bootstrap/js/bootstrap.min.js"></script> 
	<script src="../js/bootstrap.min.js"></script>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<body>

<?php
	try
	{
		$c = db_connect($_SESSION['db_name'], $_SESSION['db_user'], $_SESSION['db_pass']);
		?>	   
			<div class="btn-toolbar">
				<div class="btn-group">
					<a class="btn" href='users.php'>Liste Users</a>
					<a class="btn" href='tables.php'>Liste Tables</a>
				</div>
			</div>
	 <?php  exit;
	}

	catch (Exception $e)
	{
			die('Erreur : ' . $e->getMessage());
	}
?>	

</body>
</html>